
const db = require('../../middleware/db');
const Sequelize = require('sequelize');
// 广告明细表
module.exports = sys_ad_dtl = db.define('sys_ad_dtl', {
  ad_id: {
    type: Sequelize.STRING(255),
    allowNull: false,
    defaultValue: ''
  },
  link: {
    type: Sequelize.STRING(255),
    allowNull: true,
    defaultValue: ''
  },
  image_url: {
    type: Sequelize.TEXT,
    allowNull: false
  },
  remark: {
    type: Sequelize.STRING(255),
    allowNull: false,
    defaultValue: ''
  },
  sort: {
    type: Sequelize.INTEGER(),
    allowNull: false,
    defaultValue: '1'
  }
})

//sys_ad_dtl.sync({ force: true })
